package com.template.app.control;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@Scope(value=ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class IndexControl {
	
	/**
	 * 
	 * index:网站首页. <br/>  
	 * 
	 * 当 WEB-INF/freemarker 下面有index.html时,返回freemarker的页面,
	 * 当freemarker页面不存在时返回WEB-INF/views下的index.jsp
	 * 
	 * 返回:模板页面路径,优先返回Freemarker
	 * @exception
	 */
	@RequestMapping(value={"","/","index"})
	public String index(){
		
		return "index";
	}
	
}
